﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Home.aspx.cs" Inherits="Home" %>

<%@ Register Src="~/App_Widget/Navbar.ascx" TagName="navbar" TagPrefix="UITag" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>个人主页</title>
    <link href="App_Themes/simple.css" rel="stylesheet" />
</head>
<body class="grey">
    <UITag:navbar runat="server" ID="navbar" />

    <!-- Body -->
    <header class="center-block">
    </header>

    <div class="container">
        <div class="row">
            <div class="col-lg-8">
                <!-- Profile -->
                <div id="profile">
                    <div class="block-info">
                        <div class="row">
                            <!-- Avatar -->
                            <div class="col-lg-3">
                                <img src="Images/Avatars/avatar.jpg" />
                            </div>
                            <!-- Information -->
                            <div class="col-lg-8 col-lg-offset-1">
                                <p>姓名: <%#pInfo.Name %> </p>
                                <p>昵称: <%#pInfo.Nickname %></p>
                                <p>性别: <%#(Model.GenderName)pInfo.Gender %> </p>
                                <p>邮箱: <%#pInfo.Email %> </p>
                                <p>电话: <%#pInfo.Phone %> </p>
                                <p>注册时间: <%#pInfo.RegisterTime %> </p>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- End of Profile -->
                <!-- House List-->
                <div id="house-list">
                    <div class="block-info">
                        <div class="panel panel-default">
                            <div class="panel-heading">通过审核的房屋</div>
                            <table class="table">
                                <asp:Repeater ID="rptHouseList" runat="server">
                                    <HeaderTemplate>
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>地址</th>
                                                <th>房间数量</th>
                                                <th>价格</th>
                                                <th>发布时间</th>
                                            </tr>
                                        </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tbody>
                                            <tr>
                                                <td><%#Eval("Id") %></td>
                                                <td><%#Eval("Address") %></td>
                                                <td><%#Eval("RoomNumber") %></td>
                                                <td><%#Eval("Price") %></td>
                                                <td><%#Eval("PublishTime") %></td>
                                            </tr>
                                        </tbody>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>

                        </div>

                    </div>
                </div>
                <!-- End of House List -->

                <!-- Unchecked House List-->
                <div id="unchecked-house-list">
                    <div class="block-info">
                        <div class="panel panel-default">
                            <div class="panel-heading">未通过审核的房屋</div>
                            <table class="table">
                                <asp:Repeater ID="rptUncheckedHouseList" runat="server">
                                    <HeaderTemplate>
                                        <thead>
                                            <tr>
                                                <th>#</th>
                                                <th>地址</th>
                                                <th>房间数量</th>
                                                <th>价格</th>
                                                <th>发布时间</th>
                                            </tr>
                                        </thead>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tbody>
                                            <tr>
                                                <td><%#Eval("Id") %></td>
                                                <td><%#Eval("Address") %></td>
                                                <td><%#Eval("RoomNumber") %></td>
                                                <td><%#Eval("Price") %></td>
                                                <td><%#Eval("PublishTime") %></td>
                                            </tr>
                                        </tbody>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>

                        </div>

                    </div>
                </div>
                <!-- End of Unchecked House List -->


                <div id="latest-news">
                    <div class="block-info"></div>
                </div>
            </div>
            <div class="col-lg-3 col-lg-offset-1">
                <div id="sidebar" data-spy="affix">
                    <div id="btns">
                        <a href="HouseList.aspx" class="btn btn-primary btn-lg btn-block">发布房屋</a>
                        <a href="AddHouse.aspx" class="btn btn-success btn-lg btn-block">添加房屋</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    <footer></footer>

    <!-- End of Body -->

</body>
</html>
